<template>
    <div class="app-container">
        <el-button-group style="margin-top: 10px; margin-left: 10px;">
            <el-button>导入</el-button>
            <el-button @click="callChildMethod">导出</el-button>
            <el-button>保存</el-button>
        </el-button-group>
        <designer ref="childRef" />
    </div>
</template>
<script setup>
import { ref } from 'vue'
import designer from '@/components/designer/index.vue'

// 创建子组件的 ref
const childRef = ref(null)

// 调用子组件方法
const callChildMethod = () => {
    if (childRef.value) {
        childRef.value.exportBpmn()
    }
}
</script>
